-- 调用温度传感器
data_pin = 5
mytmr = tmr.create()
mytmr:alarm(1000, tmr.ALARM_AUTO, function()
    status, temp, humi = dht.read11(data_pin)
    if status == dht.OK then
        print(temp, humi)
    end
end)
